home *** CD-ROM | disk | FTP | other *** search
/ Computer Inter@ctive 17 / Computer Interactive cdrom 17 - gen 99.iso / ZDNETIT / CONTENT / CGIMIL32.ZIP / README.TXT < prev    next >
Encoding:
Text File  |  1998-10-15  |  11.5 KB  |  330 lines

  1. CGIMailer for Windows 95/NT4.0
  2. October 1998 version 1.30
  3.  
  4. Author:
  5. Goran Boban
  6. gboban@cursor.hr
  7.  
  8.  
  9.     DISCLAIMER
  10.  
  11.     THIS SOFTWARE AND ALL THE ACCOMPANYING FILES ARE PROVIDED "AS IS" AND 
  12.     WITHOUT ANY WARRANTIES EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED
  13.     TO IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
  14.     PURPOSE. 
  15.  
  16.  
  17.  
  18.     LIMITATION OF LIABILITY
  19.  
  20.     AUTHOR SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE OR ANY
  21.     THIRD PARTY AS A RESULT OF USING SOFTWARE. IN NO EVENT WILL AUTHOR BE
  22.     LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
  23.     SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER  CAUSED
  24.     AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF OR
  25.     INABILITY TO USE SOFTWARE, EVEN IF AUTHOR HAS BEEN ADVISED OF THE
  26.     POSSIBILITY OF SUCH DAMAGES.      
  27.  
  28.  
  29.     1. Description
  30.     --------------
  31.  
  32. CGIMailer is an CGI (Common Gateway Interface) program wich will recive input from
  33. web form and send mail.
  34.  
  35. CGIMailer supports:
  36.     - Required variables
  37.     - Template based e-mail messages
  38.     - Template based response pages
  39.     - Customisable error reports
  40.  
  41. NOTE: There must be an SMTP server accessable from your server.
  42.  
  43.  
  44.  
  45.  
  46.     2. Installation
  47.     ---------------
  48.  
  49. To install CGIMailer just copy CGIMail.exe to cgi-bin directory of your web server or any
  50. other directory in wich your server will allow execute access. Please see your servers
  51. documentation for more information.
  52.  
  53. To install samples copy *.cf and *.htt files to the directory where CGIMailer can read them.
  54. Copy *.htm files to directory under your web root directory.
  55. Also, edit ACTION property of FORM tags in *.htm files and change TEMPLATE, MSGTEMPATE,
  56. SAVETOFILE variables in configuration files (*.cf) to reflect directories where you have
  57. placed files.
  58. PLEASE, READ THIS README FILE FIRST TO UNDERSTAND HOW THIS VARIABLES SHOULD BE SET.
  59.  
  60.  
  61.  
  62.     3. Using CGIMailer
  63.     ------------------
  64.  
  65. Please see history.txt for list of changes.
  66.  
  67. CGIMailer is controlled with configuration files (Every form that uses CGIMailer can
  68. have its own configuration file).
  69. You can setup following variables in configuration file:
  70.  
  71. TEMPLATE    REQUIRED    is relative path (from CGIMail.exe) to template file
  72.                 used to create response page if operation succeeds.
  73.                 If this variable is not set CGIMailer will generate an
  74.                 error.
  75.  
  76. ERRTEMPLATE    relative path to template file if an error ocures. If this variable
  77.         is not set CGIMailer will display an built-in error message.
  78.  
  79. MSGTEMPLATE    template for creating mail message. If this variable is not set CGIMailer
  80.         will create message of following form:
  81.             VARIABLE1=VALUE1
  82.             VARIABLE2=VALUE2
  83.             ...
  84.         Where VARIABLE1, VARIABLE2 etc. are names of input fields in your web form.
  85.  
  86. SAVETOFILE    relative path (from CGIMail.exe) to file wich you want to use for saving
  87.         input. If this variable is not set, then CGIMailer will not try to save
  88.         input to file. There must be WRITE access specified for file.
  89.  
  90. DEBUG        If this variable is set to YES (DEBUG=YES) CGIMailer will send an text
  91.         response with transcription of comunication with SMTP server.
  92.         Othervise it will create response page based on file pointed in
  93.         TEMPLATE variable.
  94.  
  95. GATEWAY        Name of smtp server (smtp.server.com for example) to use for sending mail.
  96.         If this variable is not set CGIMailer will assume localhost.
  97.  
  98. PORT        Port number of SMTP service on SMTP server. By default it is 25.
  99.  
  100. FROM        E-mail address of sender. If this variable is not set CGIMailer will
  101.         assume an addres of form CURRENT_USER@NAME_OF_LOCAL_MACHINE.
  102.         You should set this variable in most cases.
  103.  
  104. TO        REQUIRED    E-mail addres (or list of addresses) of recipient(s).
  105.                 If this variable is not set CGIMailer will generate an
  106.                 error. E-mails have to be separated with space (" ").
  107.  
  108. CC        List of addresses to send carbon copy of message (displayed in Cc: field
  109.         of message).
  110.  
  111. BCC        List of addresses to send blind carbon copy of message. Addresses listed
  112.         in this line will not be listed in header of message.
  113.  
  114. SUBJECT        Subject of message.
  115.  
  116. TIMEOUT        Timeout (in seconds) for socket operations. Default is 300.
  117.  
  118.  
  119. Name of configuration file can be passed to CGIMailer in two ways:
  120.  
  121.     - By setting SYS.CONFIGFILE (or SYS_CONFIGFILE) on Your form. Your caling HTML code
  122.     should look as follows:
  123.  
  124.         <FORM method=GET action="http://your.server/cgi-bin/cgimail.exe?">
  125.         <input type=hidden name=SYS.CONFIGFILE value="configfile.cf">
  126.  
  127.             . . .
  128.  
  129.         </FORM>
  130.  
  131.     - Or by passing name of configuration file as command-line parameter:
  132.  
  133.         <FORM method=POST action="http://your.server/cgi-bin/cgimail.exe?configfile.cf">
  134.  
  135.             . . .
  136.  
  137.         </FORM>
  138.  
  139.  
  140.  
  141. NOTE:    path to configuration file must be relative to directory where cgimail.exe is placed,
  142.     or absolute path (with drive letter).
  143.     Also use SYS.CONFIGFILE (SYS_CONFIGFILE) variable when using GET method.
  144.  
  145. You can also call CGIMailer from <A HREF> tag with
  146.  
  147.     <a href="http://your.server/cgi-bin/cgimail.exe?configurationfile.cf&var1=val1&...">
  148. or
  149.     <a href="http://your.server/cgi-bin/cgimail.exe?&SYS.CONFIGFILE=configfile.cf&var1=val1...">
  150.  
  151. or
  152.     <a href="http://your.server/cgi-bin/cgimail.exe?SYS.CONFIGFILE=configfile.cf&var1=val1...">
  153.  
  154.  
  155.     4. Variables
  156.     ------------
  157.  
  158. CGIMailer will proccess configuration file, response template file and message template file
  159. (if any) to check for variables to be replaced. Variables should appear in following format:
  160.  
  161.     <%VARIABLE_NAME%>
  162.  
  163.  
  164. CGIMailer recognises four types of variables:
  165.  
  166. - Required variables    Required variable names must start with "REQ." or "REQ_" (REQ.name
  167.             for example). When CGIMailer finds required variable in any of
  168.             following files: configuration file, response template file
  169.             or message template file, it will check if variable is passed
  170.             from form and if it contains any characters other than spaces.
  171.             If not so CGIMailer will generate an error. CGIMailer will also
  172.             check input from form for required variables.
  173.  
  174. - System variables    System variable names begin with "SYS." or "SYS_" prefix. Folowing
  175.             system variables are present in CGIMailer:
  176.  
  177.             SYS.YEAR(SYS_YEAR)         - current year.
  178.             SYS.MONTH(SYS_MONTH)        - current month.
  179.             SYS.DAY(SYS_DAY)        - day.
  180.             SYS.HOURES(SYS_HOURES)        - hour when CGIMailer is started.
  181.             SYS.MINUTES(SYS_MINUTES)    - minit when CGIMailer is started.
  182.             SYS.SECONDS(SYS_SECONDS)    - second when CGIMailer is started.
  183.             SYS.TEMPLATE(SYS_TEMPLATE)    - name of response template file.
  184.             SYS.ERRTEMPLATE(SYS_ERRTEMPLATE)- name of error template file.
  185.             SYS.MSGTEMPLATE(SYS_MSGTEMPLATE)- name of message template.
  186.             SYS.SAVETOFILE(SYS_SAVETOFILE)    - name of file used to save input.
  187.             SYS.MAILER(SYS_MAILER)        - name of mailer (defaults to: CGIMailer
  188.                             version 1.21)
  189.             SYS.INPUT(SYS_INPUT)        - preproccesed message wich is sent.
  190.             SYS.GATEWAY(SYS_GATEWAY)    - name of SMTP server.
  191.             SYS.HOST(SYS_HOST)        - name of local host (where CGIMailer
  192.                             is executed).
  193.             SYS.PORT(SYS_PORT)        - port number used to connect to SMTP
  194.                             service.
  195.             SYS.FROM(SYS_FROM)        - E-mail addres of sender.
  196.             SYS.TO(SYS_TO)            - E-mail(s) of recipient(s).
  197.             SYS.CC(SYS_CC)            - Addresses listed in Cc: field.
  198.             SYS.BCC(SYS_BCC)        - Bcc list of addresses.
  199.             SYS.SUBJECT(SYS_SUBJECT)    - Subject of message.
  200.             SYS.TIMEOUT(SYS_TIMEOUT)    - Timeout for socket operations in
  201.                             seconds.
  202.  
  203. - Environment variables    Environment variable names begin with "ENV." or "ENV_" prefix. CGIMailer
  204.             will replace every occurance of variable beginning with "ENV." prefix
  205.             with coresponding environment variable. For example occurance of ENV.TEMP
  206.             variable will be replaced with environment variable TEMP passed by OS
  207.             (contains name of default temporary directory on your system).
  208.  
  209. - Occurance of any other variable (not beginning with REQ., SYS. or ENV. prefix), will be simply
  210. replaced with its value.
  211.  
  212.  
  213.  
  214.  
  215.     5. Error template
  216.     -----------------
  217.  
  218. When an error occures (and if ERRTEMPLATE variable is set in configuration file) CGIMailer
  219. will use error template file to create an response to user. Error template file is
  220. an HTML document with directives of following form:
  221.  
  222.     <%SYS.errorNN%>
  223.  
  224. where NN is error code of error wich occures or one of keywords "default" or "end"
  225. For list of error codes generated by CGIMailer see errcodes.txt.
  226. When proccesing error template CGIMailer will create an HTML document from following
  227. parts of error template file:
  228.  
  229.     - beginning of document untill first <%SYS.errorNN%>, <%SYS.errordefault%>
  230.     <%SYS.errorend%> directive, or end of file if there is no any error directive.
  231.  
  232.     - section wich begins with <%SYS.errorNN%> directive (where NN is error code
  233.     of error generated by CGIMailer if such directive) or <%SYS.errordefault%>
  234.     directive if there is no an appropriate <%SYS.errorNN%> directive,
  235.     and ends with any other error directive or end of file if no error directives
  236.     are listed after this one.
  237.  
  238.     - section wich begins with <%SYS.errorend%> directive and ends with end of file.
  239.  
  240. For the complete listing of error codes see errcodes.txt
  241.  
  242.     6. Registration
  243.     ---------------
  244.  
  245. You have permission to use an unregistered copy of CGIMailer for
  246. period of 30 days for evaluation purposes only.
  247. If You continue to use CGIMailer after period of 30 days You have
  248. to register it.
  249. Also You have permission to distribute CGIMailer package under
  250. following conditions:
  251.  
  252.     - You have to distribute CGIMa130.zip package as it is without any changes. 
  253.     - You take no fee other than for distribution costs. 
  254.     - It must be clear that CGIMailer is shareware. 
  255.  
  256. CURRENTLY AN UNREGISTERED COPY OF CGIMAILER WILL ATTACH SHORT MESSAGE
  257. TO ALL CREATED PAGES.
  258.  
  259. To remove this messages You have to register. 
  260.  
  261. To register CGIMailer just follow these steps:
  262.  
  263.     - Obtain an registration key
  264.  
  265. If You are registered user of any version prior to 1.30 just use registration key you have
  266. (Upgrade is free for You).
  267.  
  268. If You are not an registered user of version prior to 1.30 You have to pay $15 as registration
  269. fee.
  270.  
  271. On-line registration is aviable via Register Now! service at:
  272.  
  273.     https://www.regnow.com/softsell/nph-softsell.cgi?item=1275-2
  274.  
  275. You can use Visa, Mastercard, American Express, or Discover card.
  276.  
  277. You can also send me money with mail to following address:
  278.  
  279.     Goran Boban
  280.     Zeleni trg 3, 10000 Zagreb
  281.     Croatia (Europe)
  282.  
  283. If You decide to send money with mail please send cache only. Also please contact me
  284. via e-mail before sending money.
  285.  
  286. Also be sure to send me following information
  287.  
  288. - Your first and last name (or company name)
  289. - E-mail address
  290. - Name of program you want to register (CGIMailer in this case)
  291.  
  292. BE SURE TO SEND AN E-MAIL ADDRESS SO I CAN SEND YOU A REGISTRATION KEY
  293.  
  294.  
  295.     - Register Your software using register.exe
  296. Register.exe utility is distributed within this package.
  297. By using register.exe You will disable messages which unregistered version of
  298. CGIMailer attaches to responses sent to user.
  299.  
  300. NOTE: For information on running register.exe see register.txt file.
  301.  
  302.  
  303.  
  304.     7. Bugs
  305.     -------
  306.  
  307.     PLEASE SEND BUG REPORTS to
  308.  
  309.         gboban@cursor.hr
  310.  
  311.     with:
  312.         CGIMail - bugs
  313.     in subject.
  314.  
  315.     Also feel free to contact me if you have any problems running or setting-up
  316.     CGIMailer or if you have any sugestions for future releases.
  317.  
  318.     IMPORTANT: When sending bug reports or questions please be sure to include
  319.     following information:
  320.  
  321.     - Program name    (CGIMailer)
  322.     - Version    (1.30)
  323.     - OS        (Win95/98/NT4.0)
  324.     - Web server name and version.
  325.     - What have You tryed to solve problem
  326.     - Any other information which You find relevant.
  327.  
  328.  
  329.  
  330.